from django.db import models
class Users(models.Model):
    uid = models.AutoField(primary_key=True)
    username = models.CharField(max_length=32)
    password = models.CharField(max_length=32)


class Goods(models.Model):
    id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=32)
    img = models.CharField(max_length=128)
    price = models.DecimalField(max_digits=10,decimal_places=2)
    num = models.DecimalField(max_digits=10,decimal_places=0)